home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sys / RCS / param.h,v < prev    next >
Text File  |  1991-12-16  |  6KB  |  385 lines

  1. head     1.15;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.15
  10. date     91.12.16.14.02.47;  author rab;  state Exp;
  11. branches ;
  12. next     1.14;
  13.  
  14. 1.14
  15. date     91.11.05.17.16.01;  author rab;  state Exp;
  16. branches ;
  17. next     1.13;
  18.  
  19. 1.13
  20. date     89.07.14.09.15.24;  author rab;  state Exp;
  21. branches ;
  22. next     1.12;
  23.  
  24. 1.12
  25. date     88.07.22.11.28.07;  author ouster;  state Exp;
  26. branches ;
  27. next     1.11;
  28.  
  29. 1.11
  30. date     88.07.14.18.19.56;  author ouster;  state Exp;
  31. branches ;
  32. next     1.10;
  33.  
  34. 1.10
  35. date     88.07.14.09.47.17;  author ouster;  state Exp;
  36. branches ;
  37. next     1.9;
  38.  
  39. 1.9
  40. date     88.07.14.08.38.02;  author ouster;  state Exp;
  41. branches ;
  42. next     1.8;
  43.  
  44. 1.8
  45. date     88.07.02.17.38.22;  author ouster;  state Exp;
  46. branches ;
  47. next     1.7;
  48.  
  49. 1.7
  50. date     88.07.02.17.35.27;  author ouster;  state Exp;
  51. branches ;
  52. next     1.6;
  53.  
  54. 1.6
  55. date     88.07.01.15.44.16;  author ouster;  state Exp;
  56. branches ;
  57. next     1.5;
  58.  
  59. 1.5
  60. date     88.06.29.14.48.05;  author ouster;  state Exp;
  61. branches ;
  62. next     1.4;
  63.  
  64. 1.4
  65. date     88.06.27.16.19.52;  author ouster;  state Exp;
  66. branches ;
  67. next     1.3;
  68.  
  69. 1.3
  70. date     88.06.27.16.02.30;  author ouster;  state Exp;
  71. branches ;
  72. next     1.2;
  73.  
  74. 1.2
  75. date     88.06.27.15.25.51;  author ouster;  state Exp;
  76. branches ;
  77. next     1.1;
  78.  
  79. 1.1
  80. date     88.06.26.15.56.14;  author ouster;  state Exp;
  81. branches ;
  82. next     ;
  83.  
  84.  
  85. desc
  86. @@
  87.  
  88.  
  89. 1.15
  90. log
  91. @Added definition of HZ.
  92. @
  93. text
  94. @/*
  95.  * param.h --
  96.  *
  97.  *    This file is modelled after the UNIX include file <sys/param.h>,
  98.  *    but it only contains information that is actually used by user
  99.  *    processes running under Sprite (the UNIX file contains mostly
  100.  *    stuff for the kernel's use).  This file started off empty, and
  101.  *    will gradually accumulate definitions as the needs of user
  102.  *    processes become clearer.
  103.  *
  104.  * Copyright 1988 Regents of the University of California
  105.  * Permission to use, copy, modify, and distribute this
  106.  * software and its documentation for any purpose and without
  107.  * fee is hereby granted, provided that the above copyright
  108.  * notice appear in all copies.  The University of California
  109.  * makes no representations about the suitability of this
  110.  * software for any purpose.  It is provided "as is" without
  111.  * express or implied warranty.
  112.  *
  113.  * $Header: /sprite/src/lib/include/sys/RCS/param.h,v 1.14 91/11/05 17:16:01 rab Exp Locker: rab $ SPRITE (Berkeley)
  114.  */
  115.  
  116. #ifndef _SYS_PARAM_H
  117. #define _SYS_PARAM_H
  118.  
  119. #include <sys/types.h>
  120. #include <signal.h>
  121. #include <machparam.h>
  122.  
  123. #define HZ      60
  124.  
  125. /*
  126.  * MAXPATHLEN defines the longest permissable path length
  127.  * after expanding symbolic links.
  128.  */
  129. #define MAXPATHLEN      1024
  130.  
  131. /*
  132.  * MAXBSIZE defines the largest block size stored in the file system.
  133.  */
  134. #define MAXBSIZE    4096
  135.  
  136. /*
  137.  * The macro below converts from the "st_blocks" field of a "struct stat"
  138.  * to the number of bytes allocated to a file.  The "st_blocks" field
  139.  * is currently measured in (archaic) 512-byte units.
  140.  */
  141. #define dbtob(blocks) ((unsigned) (blocks) << 9)
  142.  
  143. /*
  144.  * MAXHOSTNAMELEN defines the maximum length of a host name in the
  145.  * network.
  146.  */
  147. #define MAXHOSTNAMELEN 64
  148.  
  149. /*
  150.  * Maximum number of characters in the argument list for exec.  Is this
  151.  * really a limit in Sprite, or is it here just for backward compatibility?
  152.  */
  153. #define NCARGS 10240
  154.  
  155. /*
  156.  * Maximum number of open files per process.  This is not really a limit
  157.  * for Sprite;  it's merely there for old UNIX programs that expect it.
  158.  */
  159. #define NOFILE 64
  160.  
  161. /*
  162.  * The maximum number of groups that a process can be in at once
  163.  * (the most stuff ever returned by getgroups).  Note:  this needs
  164.  * to be coordinated with FS_NUM_GROUPS, which it isn't right now.
  165.  */
  166. #define NGROUPS 16
  167.  
  168. /*
  169.  * Macros for fast min/max.
  170.  */
  171. #define MIN(a,b) (((a)<(b))?(a):(b))
  172. #define MAX(a,b) (((a)>(b))?(a):(b))
  173.  
  174. /*
  175.  * Round up an object of size x to one that's an integral multiple
  176.  * of size y.
  177.  */
  178.  
  179. #define roundup(x, y)    ((((x) + ((y) -1))/(y))*(y))
  180.  
  181. /*
  182.  * Miscellanous.
  183.  */
  184. #ifndef NULL
  185. #define NULL    0
  186. #endif /* NULL */
  187.  
  188. /*
  189.  * Scale factor for scaled integers used to count
  190.  * %cpu time and load averages.
  191.  */
  192. #define FSHIFT  8               /* bits to right of fixed binary point */
  193. #define FSCALE  (1<<FSHIFT)
  194.  
  195. #endif /* _SYS_PARAM_H */
  196. @
  197.  
  198.  
  199. 1.14
  200. log
  201. @Added definition of FSCALE. X11R5 needs it.
  202. @
  203. text
  204. @d20 1
  205. a20 1
  206.  * $Header: /sprite/src/lib/include/sys/RCS/param.h,v 1.13 89/07/14 09:15:24 rab Exp Locker: rab $ SPRITE (Berkeley)
  207. d29 2
  208. @
  209.  
  210.  
  211. 1.13
  212. log
  213. @*** empty log message ***
  214. @
  215. text
  216. @d20 1
  217. a20 1
  218.  * $Header: /sprite/src/lib/include/sys/RCS/param.h,v 1.12 88/07/22 11:28:07 ouster Exp Locker: rab $ SPRITE (Berkeley)
  219. d23 2
  220. a24 2
  221. #ifndef _PARAM
  222. #define _PARAM
  223. d93 8
  224. a100 1
  225. #endif /* _PARAM */
  226. @
  227.  
  228.  
  229. 1.12
  230. log
  231. @Added roundup macro.
  232. @
  233. text
  234. @d20 1
  235. a20 1
  236.  * $Header: param.h,v 1.11 88/07/14 18:19:56 ouster Exp $ SPRITE (Berkeley)
  237. d91 1
  238. a91 1
  239. #endif NULL
  240. d93 1
  241. a93 1
  242. #endif _PARAM
  243. @
  244.  
  245.  
  246. 1.11
  247. log
  248. @Added NGROUPS.
  249. @
  250. text
  251. @d20 1
  252. a20 1
  253.  * $Header: param.h,v 1.10 88/07/14 09:47:17 ouster Exp $ SPRITE (Berkeley)
  254. d78 7
  255. @
  256.  
  257.  
  258. 1.10
  259. log
  260. @New defines needed by csh.
  261. @
  262. text
  263. @d20 1
  264. a20 1
  265.  * $Header: param.h,v 1.9 88/07/14 08:38:02 ouster Exp $ SPRITE (Berkeley)
  266. d65 7
  267. @
  268.  
  269.  
  270. 1.9
  271. log
  272. @Define NULL if it isn't already defined.
  273. @
  274. text
  275. @d20 1
  276. a20 1
  277.  * $Header: param.h,v 1.8 88/07/02 17:38:22 ouster Exp $ SPRITE (Berkeley)
  278. a51 1
  279.  
  280. d55 12
  281. a68 1
  282.  
  283. a74 1
  284.  
  285. @
  286.  
  287.  
  288. 1.8
  289. log
  290. @Typo in last change.
  291. @
  292. text
  293. @d20 1
  294. a20 1
  295.  * $Header: param.h,v 1.7 88/07/02 17:35:27 ouster Exp $ SPRITE (Berkeley)
  296. d58 1
  297. d61 8
  298. @
  299.  
  300.  
  301. 1.7
  302. log
  303. @Added dbtob macro.
  304. @
  305. text
  306. @d20 1
  307. a20 1
  308.  * $Header: param.h,v 1.6 88/07/01 15:44:16 ouster Exp $ SPRITE (Berkeley)
  309. d46 1
  310. a46 2
  311. #define dbtob(blocks)
  312.     ((unsigned) (blocks) << 9)
  313. @
  314.  
  315.  
  316. 1.6
  317. log
  318. @Add MAXHOSTNAMELEN.
  319. @
  320. text
  321. @d20 1
  322. a20 1
  323.  * $Header: param.h,v 1.5 88/06/29 14:48:05 ouster Exp $ SPRITE (Berkeley)
  324. d40 8
  325. @
  326.  
  327.  
  328. 1.5
  329. log
  330. @Add ifdefs to prevent files from being included multiple times.
  331. @
  332. text
  333. @d20 1
  334. a20 1
  335.  * $Header: param.h,v 1.4 88/06/27 16:19:52 ouster Exp $ SPRITE (Berkeley)
  336. d40 7
  337. @
  338.  
  339.  
  340. 1.4
  341. log
  342. @Added MIN, MAX definitions.
  343. @
  344. text
  345. @d20 1
  346. a20 1
  347.  * $Header: param.h,v 1.3 88/06/27 16:02:30 ouster Exp $ SPRITE (Berkeley)
  348. @
  349.  
  350.  
  351. 1.3
  352. log
  353. @Added MAXBSIZE.
  354. @
  355. text
  356. @d20 1
  357. a20 1
  358.  * $Header: param.h,v 1.2 88/06/27 15:25:51 ouster Exp $ SPRITE (Berkeley)
  359. d40 6
  360. @
  361.  
  362.  
  363. 1.2
  364. log
  365. @Added MAXPATHLEN definition.
  366. @
  367. text
  368. @d20 1
  369. a20 1
  370.  * $Header: param.h,v 1.1 88/06/26 15:56:14 ouster Exp $ SPRITE (Berkeley)
  371. d35 5
  372. @
  373.  
  374.  
  375. 1.1
  376. log
  377. @Initial revision
  378. @
  379. text
  380. @d20 1
  381. a20 1
  382.  * $Header: proto.h,v 1.2 88/03/11 08:39:40 ouster Exp $ SPRITE (Berkeley)
  383. d29 6
  384. @
  385.